import request from '@/utils/request'
import requesta from '@/utils/requesta'

// 生产领料单详情接口
export function listIssuedetail(query) {
  return request({
    url: '/mes/wm/issueline/list/notPage',
    method: 'get',
    params: query
  })
}


//打印生产领料单
export function printList(query) {
  return request({
    url: '/mes/wm/issueline/list/merge',
    method: 'get',
    params: query
  })
}

// 生产领料单分拣单接口
export function issueInfoList(issueId) {
  return request({
    url: '/mes/wm/issueline/issueInfoList/'+issueId,
    method: 'get'
  })
}

// 打印领料单物料SN
export function printIssueLineSn(data) {
  return requesta({
    url: '/hici/print/wmissueLine', //'/mes/pro/workorderSn/print',
    method: 'post',
    data: data
  })
}

// 打印领料单物料SN
export function serialIssueLineSn(data) {
  return requesta({
    url: '/hici/print/lowWmissueLine',
    method: 'post',
    data: data
  })
}

